package com.hotelManager.www.po;

import java.math.BigDecimal;
import java.util.Date;

public class Shop {
    private Integer id;
    private String shopname;
    private String address;
    private String contact;
    private String keywords;
    private String status;
    private String auditStatus; // 审核状态：pending-待审核, approved-已通过, rejected-已拒绝
    private Integer sales_volume; // 销量
    private Date publishTime; // 发布时间
    private BigDecimal revenue; // 营业额
    private Integer userId; // 关联的用户ID
    private int favoritesVolume; // 新增收藏量字段
    private Integer viewCount; // 新增浏览量字段

    public Shop() {
    }

    public Shop(String shopname, String address, String contact, String keywords, String status) {
        this.shopname = shopname;
        this.address = address;
        this.contact = contact;
        this.keywords = keywords;
        this.status = "open";
        this.auditStatus = "pending";
        this.sales_volume = 0;
        this.publishTime = new Date();
        this.revenue = new BigDecimal(0);
        this.viewCount = 0;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setShopname(String shopname) {
        this.shopname = shopname;
    }

    public String getShopname() {
        return shopname;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddress() {
        return address;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getContact() {
        return contact;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public String getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(String auditStatus) {
        this.auditStatus = auditStatus;
    }

    public Integer getSalesVolume() {
        return sales_volume;
    }

    public void setSalesVolume(Integer sales) {
        this.sales_volume = sales;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public BigDecimal getRevenue() {
        return revenue;
    }

    public void setRevenue(BigDecimal revenue) {
        this.revenue = revenue;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public int getFavoritesVolume() {
        return favoritesVolume;
    }

    public void setFavoritesVolume(int favoritesVolume) {
        this.favoritesVolume = favoritesVolume;
    }

    public Integer getViewCount() {
        return viewCount;
    }

    public void setViewCount(Integer viewCount) {
        this.viewCount = viewCount;
    }

    
    @Override
    public String toString() {
        return "shop{"+"id="+id+", shopname="+shopname+", address="+address+", contact="+contact+", keywords="+keywords+", status="+status+", auditStatus="+auditStatus+", sales_volume="+sales_volume+", publishTime="+publishTime+", revenue="+revenue+", viewCount="+viewCount+"}";
    }
}
